﻿@model OT.Areas.Student.Models.TestResult

<div class="modal-content">
    <div class="modal-header">
        <h3 id="myModalLabel">Test Result</h3>
    </div>
    <div>
        <div class="modal-body">
            <table style="margin-top: 20px">
                <tr>
                    <td>
                        @if (Model.TotalScore >= Model.PassingScore)
                        {
                            <span class="alert alert-success" style="margin-top: 10px"><b>Congratulation!</b> You are passed.</span>
                        }
                        else
                        {
                            <span class="alert alert-danger" style="margin-top: 10px"><b>Sorry!</b> You are failed.</span>
                        }
                        <div class="editor-field" id="add1" style="visibility: visible">
                            <br />
                            Subject:<b> @Model.SubjectName </b>
                            <br />
                            Test: <b>@Model.TestName</b>
                            <br />
                            Total Questions:<b> @Model.TotalQuestion </b>
                            <br />
                            Passing Score:<b> @Model.PassingScore </b>
                            <br />
                            Attempted Questions:<b> @Model.AttemptedQuestions </b>
                            <br />
                            UnAttemptedQuestions:<b> @Model.UnAttemptedQuestions</b>
                            <br />
                            Total Correct Questions:<b> @Model.CorrectAnswers</b>
                            <br />
                            Total Wrong Questions:<b> @Model.WrongAnswers</b>
                            <br />
                            Total Score: <b>@Model.TotalScore out of @Model.TotalMarks</b>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div class="modal-footer">
            <button class="btn btn-success" id="btnResult"><b><i class="icon-thumbs-up icon-white" style="margin-right:5px"></i>Ok</b> </button>
        </div>
    </div>
</div>
